package com.zwq.zwqjavanotes.demos.web;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName testController
 * @Description TODO
 * @Author @gnplum O_o
 * @Date 2025/5/9 16:06
 * @Version 1.0
 */
@RestController
@RequestMapping("/test")
public class testController {
    @PostMapping(value = "/api")
    public Map<String,String> push(@RequestParam(required = false, value = "type") String type) {
        Map<String, String> mp = new HashMap<>();
        mp.put("status", "SUCCESS");
        mp.put("msg", "成功");
        return mp;
    }
}
